package com.dykj.fireFighting.server.socialUnit.firemanger.service.impl;

import com.dykj.fireFighting.api.socialUnit.firemanger.entity.FireStationDevice;
import com.dykj.fireFighting.api.socialUnit.firemanger.service.IFireStationDeviceService;
import com.dykj.fireFighting.common.core.service.impl.BaseServiceImpl;
import com.dykj.fireFighting.server.socialUnit.firemanger.mapper.FireStationDeviceMapper;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.transaction.annotation.Transactional;



import java.util.List;
import java.util.Map;

/**
 * 消防站设备中间表
 *
 * @Author aixiaolan
 * @Date  2021-07-06 08:39:19
 */
@Slf4j
@DubboService
@Transactional(rollbackFor = Exception.class)
public class FireStationDeviceServiceImpl extends BaseServiceImpl<FireStationDeviceMapper, FireStationDevice> implements IFireStationDeviceService {

    @Override
    public int delFireStationById( String fireStationId){
      return baseMapper.delFireStationById(fireStationId);
    }
    @Override
    public List<String> getFireStationDeviceById(String fireStationId, Integer type){
        return baseMapper.getFireStationDeviceById(fireStationId,type);
    }
}
